package file;

import java.io.File;

public class RenameTest {
	public static void main(String[] args) {
		File sourceFile = new File("C:/Users/sunniwell/Desktop/nginx_access.log");
		sourceFile.renameTo(new File(sourceFile.getParent(), "nginx_access11.log"));
		System.out.println(sourceFile.getName());
	}
}
